﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="text/javascript" th:src="@{/home/js/public.js}"></script>
</head>

<style type="text/css">
.project {
	background: url(images/IETM_bg.png) no-repeat;
	width: 100%;
	height: 100%
}
</style>
	<body>
		<div class="navigation-t">
	   	  <div class="navigation-tl">当前位置：<a href="#" onclick="changeMain('home')">主页</a> > 考试系统</div>
	    </div>
	    <div class="project">
			<div class="traing">
				<ul id="per">
					<li th:style= "${session.pm.perCode.contains('KS_questionManage')}?'':'display:none'"><a th:href="@{/exam/index?exam=2}"><img src="images/IETM_btn_a10.png" /></a></li>
					<li th:style= "${session.pm.perCode.contains('KS_paperManage')}?'':'display:none'"><a th:href="@{/exam/index?exam=3}"><img src="images/IETM_btn_a11.png" /></a></li>
					<li th:style= "${session.pm.perCode.contains('KS_resultsView')}?'':'display:none'"><a th:href="@{/exam/index?exam=4}"><img src="images/IETM_btn_a12.png" /></a></li>
					<li th:style= "${session.pm.perCode.contains('KS_takeTest')}?'':'display:none'"><a th:href="@{/exam/index?exam=5}"><img src="images/IETM_btn_a13.png" /></a></li>
					<li th:style= "${session.pm.perCode.contains('KS_myTest')}?'':'display:none'"><a th:href="@{/exam/index?exam=6}"><img src="images/IETM_btn_a14.png" /></a></li>
				</ul>
			</div>
		</div>
	</body>
	<script th:inline="javascript">  
/*<![CDATA[*/  
    var code =[[${session.pm.perCode}]];
    if(code!=null){
        var len=code.length;
        var codeName=code.substring(0,len-1).split(",");
        var le=0;
        for (var i=0;i<codeName.length;i++)
        {
        	if(codeName[i].indexOf("KS")>-1){
        		le+=1
        	}
        }

        if(le==0){
         	$("#per li").each(function(){
        	    $(this).css('display','block'); 
        	});
        }
    }
    /*]]>*/  
    </script>	
</html>
